package cn.e2win.biz.dbo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.e2win.base.entity.BaseApproveI;
import cn.e2win.base.entity.BaseEntity;

@Entity
@Table(name = "guest_relation")
public class GuestRelation extends BaseEmp implements BaseApproveI{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

		//编号--结算单
		@Id
		@Basic(optional = false)
		@GeneratedValue(strategy = GenerationType.IDENTITY)
		@Column(name = "id", nullable = false)
		private Integer id;

		//相关表
		private String entityType;
		//相关表主键
		private Integer entityId;

		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}
		public void setBaseInfo(BaseEntity base){
			this.entityId = base.getId();
			this.entityType = base.getClass().getSimpleName();
		}
		public String getEntityType() {
			return entityType;
		}
		public void setEntityType(String entityType) {
			this.entityType = entityType;
		}
		public Integer getEntityId() {
			return entityId;
		}
		public void setEntityId(Integer entityId) {
			this.entityId = entityId;
		}

		
}
